<style type="text/css">
    .titleuser{
        background-color: #CCC;
        font-family: verdana, arial, sans-serif;
        font-size: 12px;
    }
    .delete{
        background-image: <?php echo base_url()."images/delete-icon.png"?>;
    }


    ul.tsc_pagination { margin:4px 0; padding:0px; height: auto; overflow:hidden; font:12px 'Tahoma'; list-style-type:none; }
    ul.tsc_pagination li { float:left; margin:0px; padding:0px; margin-left:5px; }

    ul.tsc_pagination li a { color:black; display:block; text-decoration:none; padding:7px 10px 7px 10px; }


    ul.tsc_paginationA li a { color:#FFFFFF; border-radius:3px; -moz-border-radius:3px; -webkit-border-radius:3px; }

    ul.tsc_paginationA01 li a { color:#474747; border:solid 1px #B6B6B6; padding:6px 9px 6px 9px; background:#E6E6E6; background:-moz-linear-gradient(top, #FFFFFF 1px, #F3F3F3 1px, #E6E6E6); background:-webkit-gradient(linear, 0 0, 0 100%, color-stop(0.02, #FFFFFF), color-stop(0.02, #F3F3F3), color-stop(1, #E6E6E6)); }
    ul.tsc_paginationA01 li:hover a,
    ul.tsc_paginationA01 li.current a { background:#FFFFFF; }

</style>
<p class="bold">List users</p>
<div class="CSSTableGenerator" >
<table>
    <tr>
        <th class="titleuser" width="39">Stt</th>
        <th class="titleuser" width="142">Username</th>
        <th class="titleuser" width="178">Full name</th>
        <th class="titleuser" width="158">Email</th>
        <th class="titleuser" width="71">Gender</th>
        <th class="titleuser" width="87">Level</th>

    </tr>
    <?php if($listusers != NULL){ ?>
        <?php $i=1; foreach($listusers as $data){ ?>
            <tr>
                <td style="text-align: center;"><?php echo $i; ?></td>
                <td><?php echo $data['user_name']; ?></td>
                <td><?php echo $data['user_fullname']; ?></td>
                <td><?php echo $data['user_email']; ?></td>
                <td><?php if($data['user_gender'] == 1){ echo "Nam";}else{ echo "Nữ";} ?></td>
                <td><?php if($data['user_level'] == 1){ echo "<span class='red'>Admin</span>";}else{ echo "Member";} ?></td>
                <td style="text-align: center;"><a href="<?php echo base_url(); ?>index.php/admin/user/updateUser/<?php echo $data['user_id']; ?>"><img src="<?php echo base_url()."images/edit-icon.png"?>" height="15px" width="15px"></a></td>
                <td style="text-align: center;"><a class="delete" href="<?php echo base_url(); ?>index.php/admin/user/del/<?php echo $data['user_id']; ?>"><img src="<?php echo base_url()."images/delete-icon.png"?>" height="15px" width="15px"></a></td>
            </tr>
            <?php $i++; } } ?>
</table>
</div>
<div id="pagination"><?php echo $this->pagination->create_links(); ?></div>